home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.text;
-
- import java.awt.event.ActionEvent;
-
- public class DefaultEditorKit$InsertBreakAction extends TextAction {
- public DefaultEditorKit$InsertBreakAction() {
- super("insert-break");
- }
-
- public void actionPerformed(ActionEvent e) {
- JTextComponent target = ((TextAction)this).getTextComponent(e);
- if (target != null) {
- target.replaceSelection("\n");
- }
-
- }
- }
-